{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 量化监控
    <span class="c-gray en">&gt;</span> 量化统计
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="/quantization/tj" title="清空刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
    <!--<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px;margin-right: 10px"  href="/money/tansfer" title="清空" >清空</a>-->
</nav>
<div class="page-container">
    <form  id="qfrom" method="get" action="">
        <div class="row cl" style="width: 100%">
            日期范围：
            <input type="text" onfocus="WdatePicker()" value="{:input('get.start')}" name="start" id="start" class="input-text Wdate" style="width:120px;" autocomplete="off">
            -
            <input type="text" onfocus="WdatePicker()" value="{:input('get.end')}" name="end" id="end" class="input-text Wdate" style="width:120px;" autocomplete="off">
            <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>策略名称：</label>
            <div class="formControls col-xs-3 col-sm-3">
                <select name="cenue" class="select">
                    <option value="" selected>全部</option>
                    {foreach $cenues as $v}
                    {if isset($_GET['cenue'])&&$v ==$_GET['cenue']}
                    <option value="{$v}" selected>{$v}</option>
                    {else/}
                    <option value="{$v}">{$v}</option>
                    {/if}
                    {/foreach}
                </select>
            </div>
            <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            <input class="btn btn-primary radius"type="button"  style="width: 80px" id="daochu" value="&nbsp;&nbsp;导出&nbsp;&nbsp;" readonly>
        </div>
    </form>

    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <td>{foreach $hints as $v}
                <span>{$v}</span><br>
            {/foreach}</td>
       </div>
    <table class="table table-border table-bordered table-hover table-bg">
        <thead>
            <tr>
                <th scope="col" colspan="11">统计</th>
            </tr>
            <tr class="text-c">
                <th width="100">策略名称</th>
                <th width="100">当天资产</th>
                <th width="80">当天挂单数</th>
                <th width="80">当天成交数</th>
                <th width="100">当天平仓止盈数</th>
                <th width="100">当天平仓止亏数</th>
                <th width="100">当前未成交数</th>
                <th width="80">当前未平仓数</th>
                <th width="80">资产变化</th>
                <th width="100">变化率</th>
                <th width="70">日期</th>
            </tr>
        </thead>
        <tbody>
            {foreach $list as $v}
            <tr class="text-c">
                <td>{$v.name}</td>
                <td>{$v.asset}</td>
                <td>{$v.number}</td>
                <td>做多：{$v.kc_duo}<br>做空：{$v.kc_kong}</td>
                <td>{$v.pc_win_duo}</td>
                <td>{$v.pc_lose_duo}</td>
                <td>{$v.gd_wei_cj}</td>
                <td>{$v.pc_none}</td>
                <td>总变化：{$v.days_changge}
                    <br>近1天：{$v.days_1_changge}
                    <br>近7天：{$v.days_7_changge}
                    <br>近30天：{$v.days_30_changge}</td>
                <td>总变化率：{$v.days_crate}
                    <br>近1天：{$v.days_1_crate}
                    <br>近7天：{$v.days_7_crate}
                    <br>近30天：{$v.days_30_crate}</td>
                <td>{:date('Y-m-d',$v['time'])}</td>
            </tr>
            {/foreach}
        </tbody>
    </table>
    <div class="page">
        {$list->render()|raw}
    </div>
</div>

{include file="public/footer" /}
<script>
    $("#daochu").bind("click",function () {
        window.location.href="/quantization/tjexcel.html?"+$("#qfrom").serialize()

    })
</script>